#!/bin/bash
# Update changelog
git-changelog -c angular -o CHANGELOG.md -t angular --bump auto -p github $*
git add CHANGELOG.md

# Add release message
version=$(grep -oP '(?<=## \[)[^]]*' CHANGELOG.md | head -n 1)
git commit -m "chore: release $version"
git tag $version
git push
git push --tags